import request from "@/utils/request.js";
/**
 * 获取服务协议列表
 * @param params
 */
export const getPageservice = query => {
  return request({
    url: `/sass/serviceAgreement/page`,
    method: "get",
    params: query
  });
};
/**
 * 新增协议
 * @param params
 */
export const addserviceAgreement = data => {
  return request({
    url: "/sass/serviceAgreement/insert",
    method: "post",
    data
  });
};

/**
 * 编辑协议
 * @param params
 */
export const editserviceAgreement = data => {
  return request({
    url: `/sass/serviceAgreement/modify`,
    method: "post",
    data
  });
};

/**
 * 删除协议
 * @param params
 */
export const delectAgreement = data => {
  return request({
    url: `/sass/serviceAgreement/delete`,
    method: "post",
    data
  });
};

/**
 * 根据分类id删除
 * @param params
 */
export const deleteByCategroryId = data => {
  return request({
    url: `/purchase/api/cpaShopCategoryDict/deleteByCategroryId`,
    method: "post",
    data
  });
};
/**
 * 新增分类
 * @param params
 */
export const addCategoryDict = data => {
  return request({
    url: "/purchase/api/cpaShopCategoryDict/insert",
    method: "post",
    data
  });
};
/**
 * 获取分类列表
 * @param params
 */
export const getCategorylist = () => {
  return request({
    url: `/purchase/api/cpaShopCategoryDict/list`,
    method: "get"
  });
};

/**
 * 展厅更换记录
 * @param params
 */
export const getShowroomchange = query => {
  return request({
    url: `/purchase/api/cpaBusinessShowroomManage/showroomChangeRecords`,
    method: "get",
    params: query
  });
};
